package com.ovt.doorbell.payment.service;

import java.util.List;

import com.ovt.doorbell.payment.dao.vo.PageInfo;
import com.ovt.doorbell.payment.dao.vo.Permission;
import com.ovt.doorbell.payment.dao.vo.PermissionGrant;
import com.ovt.doorbell.payment.service.exception.ServiceException;

public interface PermissionService
{
    public List<PermissionGrant> getPermissionGrantByUserId(PageInfo page, int userId) throws ServiceException;
    
    public List<Permission> getPermissionList(PageInfo page) throws ServiceException;
    
    public void grantPermission(int userId, int permId) throws ServiceException;
    
    public void revokePermission(int userId, int permId) throws ServiceException;
}
